﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BTop.aspx.cs" Inherits="BTop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>

    <script type="text/javascript">

   	function setHome()
    {	//获得当前语言
        var language = "<%=readLanguage()%>"; 
       if(language=='zh-cn') 
       {
    	    if(window.confirm("你确实要退出吗？"))
	        {
	            window.parent.close();
		    }
		}
		else
		{
		    if(window.confirm("OK to Exit?"))
	        {
	            window.parent.close();
		    }
		}
    }
    function Refresh()
	{
	    window.parent.mainFrame.location.href=window.parent.mainFrame.location.href;
        window.parent.mainFrame.location.reload(); 
		//window.parent.mainFrame.location.reload();
	}
	function Logout()
	{
	    //确认注销
	    var language = "<%=readLanguage()%>"; 
       if(language=='zh-cn') 
       {
	        if(window.confirm("你确实要注销吗？"))
	        {
	            window.parent.location.href = "SLogin.aspx";
		    }
		}
		else
		{
		    if(window.confirm("OK to Log Off?"))
	        {
	        window.parent.location.href="SLogin.aspx";
		    }
		}
	} 
//活得当前客户端机器的时间信息，  yyyy-mm-dd 星期x hh24:mm:ss格式
function getDateTimeInfo()
{
	var dateInfo;
	var tmpDate = new Date();
    var date = tmpDate.getDate();
	var month = tmpDate.getMonth()+1;
    var year = tmpDate.getYear();
    var hours, minutes, seconds;
    var intHours, intMinutes, intSeconds;
    var today;
	var weekday;
    today = new Date();
    intHours = today.getHours();
    intMinutes = today.getMinutes();
    intSeconds = today.getSeconds();
	//获得当前语言
    var language = "<%=readLanguage()%>"; 
	myArray = new Array(6);
    myArray[0]    =    language=='zh-cn'?"<font color='#CC3300'>星期日</font>":"<font color='#CC3300'>Sunday</font>";
    myArray[1]    =    language=='zh-cn'?"星期一":"Monday";
    myArray[2]    =    language=='zh-cn'?"星期二":"Tuesday";
    myArray[3]    =    language=='zh-cn'?"星期三":"Wednesday";
    myArray[4]    =    language=='zh-cn'?"星期四":"Thursday";
    myArray[5]    =    language=='zh-cn'?"星期五":"Friday";
    myArray[6]    =    language=='zh-cn'?"<font color='#CC3300'>星期六</font>":"<font color='#CC3300'>Saturday</font>";
	weekday = tmpDate.getDay();
    dateInfo = year + "-" + month + "-" + date + " " + myArray[weekday];

    weekday = tmpDate.getDay();

    if (intHours == 0)
    {
        hours = "00:";
    }
    else if (intHours < 12)
    { 
        hours = intHours + ":";
    }
    else if (intHours == 12)
    {
        hours = "12:";
    }
    else
    {
        hours = intHours + ":";
    }
    if (intMinutes < 10)
    {
        minutes = "0" + intMinutes + ":";
    }
    else
    {
        minutes = intMinutes + ":";
    }
    if (intSeconds < 10)
    {
        seconds = "0" + intSeconds;
    }
    else
    {
        seconds = intSeconds;
    } 
	window.setTimeout("getDateTimeInfo();", 100);

    ///return dateInfo + " " + (hours + minutes + seconds);

	var temp = document.getElementById('viewTile');
	if(language=='zh-cn')
	{
	    temp.innerHTML ="，今天是["+dateInfo + " " + (hours + minutes + seconds) + "]";
	}
	else
	{
	    temp.innerHTML =",today is ["+dateInfo + " " + (hours + minutes + seconds) + "]";
	}

}
    </script>

    <script type="text/javascript" language="javascript">
//点击确定是否显示左侧菜单条
function is_view_tools(img){
	if(window.parent.frm.cols=="185,*"){
		window.parent.frm.cols="0,*";
		img.src = "Image/menu_view1.gif";
	}
	else{
		window.parent.frm.cols="185,*";
		img.src = "Image/menu_view.gif";
		//document.getElementById("menuContractList").style.width=document.getElementById("menuContractList").style.width-185;
	}
	//Refresh();
}
    </script>

    <link href="CSS/top.css" type="text/css" rel="Stylesheet" />
</head>
<body text="#000000" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
    margin-top: 0px" onload='getDateTimeInfo()'>
    <form id="form1" runat="server">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
                <tr>
                <td>
                    <img src="Image/logo.JPG" alt="Vacon CHINA" style="height: 40px" />
                </td>
                    <td width="60%" height="42" style="text-align:center; font-size:26px; font-weight:bold;" valign="middle">
                        <span> ITT Order Status Platform</span>
                    </td>
                    <td width="30%" align="right" valign="bottom" bgcolor="#FFFFFF">
                    </td>
                    <td width="10%" align="right" valign="middle" nowrap bgcolor="#FFFFFF">
                    <%if (language.Equals("zh-cn")){ %>
                        <a onclick="Refresh();" style="cursor: hand;" title="刷新"><strong>刷新</strong></a>
                        | <a onclick="Logout();" style="cursor: hand;" title="注销"><strong>注销</strong></a>
                        | <a onclick="setHome();" style="cursor: hand;" title="退出"><strong>退出</strong></a>
                       <%}else{ %> 
                          <a onclick="Refresh();" style="cursor: hand;" title="Refresh"><strong>Refresh</strong></a>
                        | <a onclick="Logout();" style="cursor: hand;" title="Log Off"><strong>Log Off</strong></a>
                        | <a onclick="setHome();" style="cursor: hand;" title="Exit"><strong>Exit</strong></a>
                      <%} %> 
                    </td>
                </tr>
            </tbody>
        </table>
        <table cellspacing="0" cellpadding="0" width="100%" border="0" background="Image/haha.jpg">
            <tr>
                <td width='3%' height="26" nowrap style='cursor: hand;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#FFFFFF,endcolorstr=#799ae1,gradientType=0'>
                    &nbsp;
                     <%if (language.Equals("zh-cn")){ %>
                    <img name='view_menu' src="Image/menu_view.gif" width="12" height="12" border="0"
                        title='Close/Open the Navigation bar' alt="Close/Open the Navigation bar" 
                        onclick='javascript:is_view_tools(view_menu)' />
                       <%}else{ %>  
                      <img name='view_menu' src="Image/menu_view.gif" width="12" height="12" border="0"
                        title='Close/Open the Navigation bar' alt="Close/Open the Navigation bar" 
                        onclick='javascript:is_view_tools(view_menu)' />
                       <%} %> 
                       &nbsp;
                </td>
                <td width='5%' height="26" nowrap style="filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#FFFFFF,endcolorstr=#799ae1,gradientType=0">
                    &nbsp;&nbsp;&nbsp; <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
               <td id='viewTile' height="20" align="left" style="text-decoration: none;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#FFFFFF,endcolorstr=#799ae1,gradientType=0" width='20%'
                    nowrap>
                </td>
                <td height="26" align="right" style="text-decoration: none;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#FFFFFF,endcolorstr=#799ae1,gradientType=0">
                    &nbsp;&nbsp;&nbsp;Author&copy;&nbsp;<%if (language.Equals("zh-cn")){ %><a href="http://www.shinfomelody.com" target='_blank'>上海科慕迪信息科技有限公司</a>
                    <%}else{ %> 
                    <a href="http://www.shinfomelody.com" target='_blank'>Shanghai InfoMelody Information Technology Co., Ltd.</a>
                    <%} %> 
                    </td>
            </tr>
        </table>
    </form>
</body>
</html>
